#ifndef _rgatest_hpp_
#define _rgatest_hpp_

#include "im2d.hpp"

typedef enum _mode_code {
    MODE_QUERYSTRING = 0,
    MODE_COPY,
    MODE_RESIZE,
    MODE_CROP,
    MODE_ROTATE,
    MODE_FLIP,
    MODE_TRANSLATE,
    MODE_BLEND,
    MODE_COLORKEY,
    MODE_OSD,
    MODE_ROP,
    MODE_RECTANGLE,
    MODE_MOSAIC,
    MODE_CVTCOLOR,
    MODE_FILL,
    MODE_WHILE,
    MODE_HELP,
    MODE_NONE,
    MODE_MAX
} MODE_CODE;
typedef struct __IMGINFO{
    rga_buffer_handle_t handle;
    rga_buffer_t buffer;
    int w;
    int h;
    int format;
    im_rect rect;
    unsigned char* imgData;
}_IMGINFO;

int rga_cvtcolor(_IMGINFO imgSrc, _IMGINFO imgDst);

#endif /* #ifndef */
